﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="UserControls_Search" %>
<%@ Register Src="~/UserControls/Widget.ascx" TagName="Widget" TagPrefix="uc" %>

<div id="masthead">
    <div class="container_24">
        <div class="grid_24">
            <h2 id="heading">Tìm kiếm</h2>

        </div>
        <div class="clear"></div>
    </div>
</div>

<div id="content">

    <div class="container_24">
        <div class="grid_15">
            <fieldset class="rounded shadow">
                <legend class="rounded"><%=Setting.String("SITE_NAME") %></legend>
                <div class="box">
                    Kết quả tìm kiếm cho từ khóa:  <b><%=Request.QueryString["q"] %></b>
                    <br />
                    <hr />

                    <asp:Repeater ID="rptSearch" runat="server">
                        <ItemTemplate>

                            <div class="broadcast">
                                <div class="slide_image">
                                    <a href="/course/<%#Eval("CourseID") %>-<%# StringHelper.RemoveDiacriticsURL( Eval("Name").ToString()) %>" title="<%#Eval("CourseID") %>">

                                        <img alt="<%#Eval("Name") %>" class="with_border" height="130" src="/ThumbnailHandler.axd?img=<%#Eval("Picture") %>&size=130" width="130" /></a>
                                </div>
                                <div class="slide_content">
                                    <h4>
                                        <a href="/course/<%#Eval("CourseID") %>-<%# StringHelper.RemoveDiacriticsURL( Eval("Name").ToString()) %>" title="<%#Eval("CourseID") %>"><%#Eval("Name") %></a></h4>
                                    <h4>

                                        <a href="/cart/<%#Eval("CourseID") %>" class="btn btn-large btn-success tooltip" title="Đăng ký ngay">Đăng ký khóa học này</a>

                                    </h4>
                                    <p class="light">Thêm bởi: &bull; <%#Eval("CreatedBy") %></p>
                                    <p><%#Eval("Description") %>.</p>
                                </div>
                            </div>
                            <hr />
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="clear"></div>
            </fieldset>
        </div>
        <uc:Widget ID="rightWidget" runat="server" />
        <div class="clear"></div>
    </div>
